package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SalesMapper;
import com.ruoyi.system.domain.Sales;
import com.ruoyi.system.service.ISalesService;

/**
 * 发售Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-04
 */
@Service
public class SalesServiceImpl implements ISalesService 
{
    @Autowired
    private SalesMapper salesMapper;

    /**
     * 查询发售
     * 
     * @param salesId 发售主键
     * @return 发售
     */
    @Override
    public Sales selectSalesBySalesId(Long salesId)
    {
        return salesMapper.selectSalesBySalesId(salesId);
    }

    /**
     * 查询发售列表
     * 
     * @param sales 发售
     * @return 发售
     */
    @Override
    public List<Sales> selectSalesList(Sales sales)
    {
        return salesMapper.selectSalesList(sales);
    }

    /**
     * 新增发售
     * 
     * @param sales 发售
     * @return 结果
     */
    @Override
    public int insertSales(Sales sales)
    {
        return salesMapper.insertSales(sales);
    }

    /**
     * 修改发售
     * 
     * @param sales 发售
     * @return 结果
     */
    @Override
    public int updateSales(Sales sales)
    {
        return salesMapper.updateSales(sales);
    }

    /**
     * 批量删除发售
     * 
     * @param salesIds 需要删除的发售主键
     * @return 结果
     */
    @Override
    public int deleteSalesBySalesIds(Long[] salesIds)
    {
        return salesMapper.deleteSalesBySalesIds(salesIds);
    }

    /**
     * 删除发售信息
     * 
     * @param salesId 发售主键
     * @return 结果
     */
    @Override
    public int deleteSalesBySalesId(Long salesId)
    {
        return salesMapper.deleteSalesBySalesId(salesId);
    }
}
